package com.tcp2.msg.rpc;



import com.yaxon.vndp.dms.Message;

import java.util.Arrays;

/**
 *
 * Author: 杨俊辉
 * Time: 2014-10-10 17:09
 * Copyright (C) 2014 Xiamen Yaxon Networks CO.,LTD.
 */

/**
 *  车辆应急接入监管平台请求消息
 */
public class Dn_9505 implements Message{
    @Override
    public String id() {
        return "9505";
    }

    private String lpn;
    private Byte col;

    private byte[] authCode;//监管平台下发的鉴权码
    private String accessPointName; //拨号点名称
    private String userName; //拨号用户名，服务器无线通信拨号用户名
    private String password; //拨号密码，服务器无线通信拨号密码
    private String serverIp; //地址，服务器IP 地址或域名
    private Integer tcpPort; //服务器TCP 端口
    private Integer udpPort; //服务器UDP 端口
    private Long endTime;    //结束时间，用UTC 时间表示，0 表示一直连接指定的服务器。

    public String getLpn() {
        return lpn;
    }

    public void setLpn(String lpn) {
        this.lpn = lpn;
    }

    public Byte getCol() {
        return col;
    }

    public void setCol(Byte col) {
        this.col = col;
    }

    public byte[] getAuthCode() {
        return authCode;
    }

    public void setAuthCode(byte[] authCode) {
        this.authCode = authCode;
    }

    public String getAccessPointName() {
        return accessPointName;
    }

    public void setAccessPointName(String accessPointName) {
        this.accessPointName = accessPointName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getServerIp() {
        return serverIp;
    }

    public void setServerIp(String serverIp) {
        this.serverIp = serverIp;
    }

    public Integer getTcpPort() {
        return tcpPort;
    }

    public void setTcpPort(Integer tcpPort) {
        this.tcpPort = tcpPort;
    }

    public Integer getUdpPort() {
        return udpPort;
    }

    public void setUdpPort(Integer udpPort) {
        this.udpPort = udpPort;
    }

    public Long getEndTime() {
        return endTime;
    }

    public void setEndTime(Long endTime) {
        this.endTime = endTime;
    }

    @Override
    public String toString() {
        return "Dn_9505{" +
                "lpn='" + lpn + '\'' +
                ", col=" + col +
                ", authCode=" + Arrays.toString(authCode) +
                ", accessPointName='" + accessPointName + '\'' +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", serverIp='" + serverIp + '\'' +
                ", tcpPort=" + tcpPort +
                ", udpPort=" + udpPort +
                ", endTime=" + endTime +
                '}';
    }
}
